//
//  QTfamousCVCell.m
//  QTLifeCircle
//
//  Created by 王琼 on 17/1/16.
//  Copyright © 2017年 徐腾. All rights reserved.
//

#import "QTfamousCVCell.h"
#import <UIImageView+WebCache.h>
@interface QTfamousCVCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *coverImage;
@property (weak, nonatomic) IBOutlet UIImageView *scoreImage;
@property (weak, nonatomic) IBOutlet UILabel *introLabel;
@property (weak, nonatomic) IBOutlet UILabel *lonLabel;


@end

@implementation QTfamousCVCell

-(void)setModel:(QTFmousModel *)model
{
    _model = model;
    NSLog(@"%@------",model);
    //店名
    self.nameLabel.text = model.name;
    //店铺图片地址
    NSURL* URL = [NSURL URLWithString:model.cover];
    [self.coverImage sd_setImageWithURL:URL placeholderImage:[UIImage imageNamed:@"no"]];
    
    //详情
    self.introLabel.text = model.intro;
    //距离
    self.lonLabel.text = model.lon;
    //星星 star_5
    self.scoreImage.image = [UIImage imageNamed:[NSString stringWithFormat:@"star_%@",model.score]];
    
    
    
}
@end
